home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / ezy_comm / ezy1023.zip / SETUP.ZIP / DBMAILER.BAT < prev    next >
DOS Batch File  |  1992-09-03  |  1KB  |  59 lines

  1. @echo off
  2. rem    Ezycom DB Mailer Batch File V1.0
  3. rem    Command Format :
  4. rem    DBMAILER        (for node 1 operation)
  5. rem    DBMAILER [node] (for node XX operation)
  6. rem    [node] is the node number from 1 through to 250
  7. rem    eg  BBS 2
  8. set DBRIDGE=C:\DB
  9. rem NOTE : no trailing backslash
  10. if %1! == !     SET TASK=1
  11. if not %1! == ! SET TASK=%1
  12. :EXECDB
  13. cd %DBRIDGE%
  14. echo scan >dbridge.rsn
  15. Db
  16. if errorlevel 100 goto WEEKEND
  17. if errorlevel 90  goto DAILY
  18. if errorlevel 60  goto MAILIN
  19. if errorlevel 50  goto BBS
  20. if errorlevel 45  goto EDITOR
  21. if errorlevel 1   goto EXIT
  22. if errorlevel 0   goto EXIT
  23. goto execdb
  24.  
  25. :DAILY
  26. cd %EZY%
  27. ezymail -scan
  28. ezynet  -export
  29. ezyff -C
  30. ezymaint -C -I -P
  31. ezyff -ID
  32. usercomp -A -S1 -P -B10 -D90
  33. msgcomp -LINK
  34. goto execdb
  35.  
  36. :MAILIN
  37. ezynet  -import -echoarea
  38. ezymail -toss 
  39. goto execdb
  40.  
  41. :BBS
  42. CALL bbs.bat
  43. goto execdb
  44.  
  45. :EDITOR
  46. cd %DBRIDGE%
  47. dbedit
  48. goto execdb
  49.  
  50. :WEEKEND
  51. rem weekend event like stuff goes here
  52. cd %EZY%
  53. ezyff -c
  54. ezymaint -D
  55. goto execdb
  56.  
  57. :EXIT
  58. echo Ezycom is Down
  59.